package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "show version of mytool",
	Long:  `All tools have a version, this is mytool's"`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("mytool-1.0-beta")
	},
}

func initVersion() {
	rootCmd.AddCommand(versionCmd)
}
